<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<style>
    .test{
        display: grid;
        place-items: center;
        grid-template-rows: 50% 50%;
        height:400px;
        background-color: lightblue;
    }
    .row1{
        background-color: lightblue;
        display: grid;
        place-items: center;
    }
</style>
<body>
<div class="test">
    <div class="row1" style="background-color: lightyellow">
        <h1 style="text-align: center;background-color: #0056b3;width: 1000px;">博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客这是何哥的博客</h1>
    </div>
    <div class="row1">
        <label>
            <input type="text"> 搜索
        </label>
    </div>
</div>
</body>
</html>